package cn.xiaohe.daoimpl;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;




import cn.xiaohe.Util.BaseDao;
import cn.xiaohe.dao.dao;
import cn.xiaohe.entity.entity;

public class daoimpl extends BaseDao implements dao {

	public List<entity> Allfind() {
		String sql = "select * from shoppoing";
		List<entity> list = new ArrayList<entity>();
		
		ResultSet rs= executeQuery(sql);
		try {
			while (rs.next()) {
				entity ti = new entity();
				ti.setUrl(rs.getString(1));
				ti.setXx(rs.getString(2));
				ti.setPrice(rs.getString(3));
				list.add(ti);
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return list;
	}

}
